package com.starryx.driverschool.dao;

import com.starryx.driverschool.po.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface TeacherRepository extends JpaRepository<Teacher, Long>, JpaSpecificationExecutor<Teacher> {
    List<Teacher> findAllByCarNull();

    Teacher findByCarId(Long id);

    Teacher findByNo(String no);
}
